package com.dreamdance.queerball;

import android.os.Bundle;

import com.mobclick.android.MobclickAgent;

import net.ds0101.framework.android.neox.main.NXDirector;
import net.ds0101.framework.android.neox.main.NXScene;
import net.ds0101.framework.android.neox.util.NXResourceConverter;

public class QueerBallMainEntry extends NXDirector {
	private NXScene mGameMenu;
	@Override
	public int onMain() {
		background(NXResourceConverter.getBitmapFromResource(this, R.drawable.bkgrd));
		if (null == mGameMenu) {
			//mGameMenu = new QueerBallMenu(this);
			mGameMenu = new QueerBallGameScene(this);
		}
		replaceWithScene(mGameMenu);
		return 0;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    MobclickAgent.onError(this);
	    MobclickAgent.update(this);
	}
	
	@Override
	public void onResume() {
	    super.onResume();
	    MobclickAgent.onResume(this);
	}
	
	@Override
	public void onPause() {
	    super.onPause();
	    MobclickAgent.onPause(this);
	}
}
